package com.wyzz.hr.util.tags;

import com.opensymphony.xwork2.util.ValueStack;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ui.AbstractUITag;

public class TableHeadTag extends AbstractUITag {

	public TableHeadTag() {
	}

	public Component getBean(ValueStack arg0, HttpServletRequest arg1,
			HttpServletResponse arg2) {
		return new TableHeadComp(arg0, arg1, arg2);
	}

	protected void populateParams() {
		super.populateParams();
		TableHeadComp comp = (TableHeadComp) component;
		comp.setHeadName(headName);
		comp.setOrderForm(orderForm);
		comp.setCheckBox(checkBox);
	}

	public String getHeadName() {
		return headName;
	}

	public void setHeadName(String headName) {
		this.headName = headName;
	}

	public String getOrderForm() {
		return orderForm;
	}

	public void setOrderForm(String orderForm) {
		this.orderForm = orderForm;
	}

	public String getCheckBox() {
		return checkBox;
	}

	public void setCheckBox(String checkBox) {
		this.checkBox = checkBox;
	}

	private static final long serialVersionUID = 1L;
	public String headName;
	public String orderForm;
	public String checkBox;
}
